import SpreadClient from '@/components/operating_center/client_manager/SpreadClient'
import ClientRebateRate from '@/components/operating_center/client_manager/ClientRebateRate'
import ClientAccount from '@/components/operating_center/client_manager/ClientAccount'
import ClientItem from '@/components/operating_center/client_manager/ClientItem'
import ClientSurvey from '@/components/operating_center/client_manager/ClientSurvey'

const routers = [
  {path: 'spread-clients', component: SpreadClient},
  {path: 'client-rebate-rates', component: ClientRebateRate},
  {path: 'client-accounts', component: ClientAccount},
  {path: 'client-items', component: ClientItem},
  {path: 'client-survey', component: ClientSurvey}
]

const menu = {
  title: '客户管理',
  icon: 'th-large',
  flag: false,
  sons: [
    {
      title: '推广客户',
      icon: 'user',
      path: '/operating-center/spread-clients',
      perm: 'projectCustomer:list',
      flag: false
    },
    {
      title: '客户返点率',
      icon: 'bullseye',
      path: '/operating-center/client-rebate-rates',
      perm: 'projectRebatesRate:list',
      flag: false
    },
    {
      title: '客户账号',
      icon: 'group',
      path: '/operating-center/client-accounts',
      perm: 'systemCustomerUser:list',
      flag: false
    },
    {
      title: '客户项目',
      icon: 'bookmark',
      path: '/operating-center/client-items',
      perm: 'projectItem:list',
      flag: false
    },
    {
      title: '客户问卷调查',
      icon: 'file-text',
      path: '/operating-center/client-survey',
      perm: 'survey:list',
      flag: false
    }
  ]
}

export default {
  routers,
  menu
}
